import {createRouter,createWebHistory} from "vue-router";
import HelloWorld from "../components/HelloWorld.vue";
import UserComponent from "../components/UserComponent.vue";
import StatisticsComponent from "../components/StatisticsComponent.vue";
const  routers = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:"/user",
            name:"main",
            component:UserComponent
        },
        {
            path:"/",
            name:"hello",
            component:HelloWorld
        },
        {
            path:"/statistics",
            name:"statistics",
            component:StatisticsComponent
        }
    ]
})
export default routers